// Created from GenerationTemplate
// For Decisions HL7 Engine
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Reflection;
using DecisionsFramework.Design.Properties;
using Decisions.HL7.Generated.AbstractMessage;
using Decisions.HL7.DataTypes;
using ST = System.String;
using SI = System.String;
using TX = System.String;
using FT = System.String;
using IS = System.String;
using ID = System.String;
using SNM = System.String;

namespace Decisions.HL7.Message
{
    [DataContract]
	public class PV2 : AbstractSegment
    {

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("1 Prior Pending Location",1)]
  	    [HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.True,"PL")]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.True,"PL")]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.True,"PL")]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.True,"PL")]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.True,"PL")]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.True,"PL")]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.True,"PL")]
	    public PL PriorPendingLocation {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("2 Accommodation Code",2)]
  	    [HL7Field(HL7Version.v23, 2, HL7Repeat.False, HL7Required.True,"CE_0129")]
  	    [HL7Field(HL7Version.v231, 2, HL7Repeat.False, HL7Required.True,"CE_0129")]
  	    [HL7Field(HL7Version.v24, 2, HL7Repeat.False, HL7Required.True,"CE_0129")]
  	    [HL7Field(HL7Version.v25, 2, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 2, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 2, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 2, HL7Repeat.False, HL7Required.True,"CWE")]
		[AccommodationCode]
	    public CWE AccommodationCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("3 Admit Reason",3)]
  	    [HL7Field(HL7Version.v23, 3, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v231, 3, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v24, 3, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v25, 3, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 3, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 3, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 3, HL7Repeat.False, HL7Required.True,"CWE")]
	    public CWE AdmitReason {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("4 Transfer Reason",4)]
  	    [HL7Field(HL7Version.v23, 4, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v231, 4, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v24, 4, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v25, 4, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 4, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 4, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 4, HL7Repeat.False, HL7Required.True,"CWE")]
	    public CWE TransferReason {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("5 Patient Valuables",5)]
  	    [HL7Field(HL7Version.v23, 5, HL7Repeat.True, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v231, 5, HL7Repeat.True, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v24, 5, HL7Repeat.True, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v25, 5, HL7Repeat.True, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v251, 5, HL7Repeat.True, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v26, 5, HL7Repeat.True, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v27, 5, HL7Repeat.True, HL7Required.True,"ST")]
	    public ST[] PatientValuables {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("6 Patient Valuables Location",6)]
  	    [HL7Field(HL7Version.v23, 6, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v231, 6, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v24, 6, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v25, 6, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v251, 6, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v26, 6, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v27, 6, HL7Repeat.False, HL7Required.True,"ST")]
	    public ST PatientValuablesLocation {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("7 Visit User Code",7)]
  	    [HL7Field(HL7Version.v23, 7, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v231, 7, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v24, 7, HL7Repeat.True, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v25, 7, HL7Repeat.True, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 7, HL7Repeat.True, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 7, HL7Repeat.True, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 7, HL7Repeat.True, HL7Required.True,"CWE")]
		[VisitUserCode]
	    public CWE[] VisitUserCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("8 Expected Admit Date",8)]
  	    [HL7Field(HL7Version.v23, 8, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v231, 8, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v24, 8, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v25, 8, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v251, 8, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v26, 8, HL7Repeat.False, HL7Required.True,"DTM")]
  	    [HL7Field(HL7Version.v27, 8, HL7Repeat.False, HL7Required.True,"DTM")]
	    public DTM ExpectedAdmitDate {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("9 Expected Discharge Date",9)]
  	    [HL7Field(HL7Version.v23, 9, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v231, 9, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v24, 9, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v25, 9, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v251, 9, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v26, 9, HL7Repeat.False, HL7Required.True,"DTM")]
  	    [HL7Field(HL7Version.v27, 9, HL7Repeat.False, HL7Required.True,"DTM")]
	    public DTM ExpectedDischargeDate {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("10 Estimated Length of Inpatient Stay",10)]
  	    [HL7Field(HL7Version.v23, 10, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v231, 10, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v24, 10, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v25, 10, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v251, 10, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v26, 10, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v27, 10, HL7Repeat.False, HL7Required.True,"NM")]
	    public NM EstimatedLengthofInpatientStay {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("11 Actual Length of Inpatient Stay",11)]
  	    [HL7Field(HL7Version.v23, 11, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v231, 11, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v24, 11, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v25, 11, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v251, 11, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v26, 11, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v27, 11, HL7Repeat.False, HL7Required.True,"NM")]
	    public NM ActualLengthofInpatientStay {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("12 Visit Description",12)]
  	    [HL7Field(HL7Version.v23, 12, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v231, 12, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v24, 12, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v25, 12, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v251, 12, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v26, 12, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v27, 12, HL7Repeat.False, HL7Required.True,"ST")]
	    public ST VisitDescription {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("13 Referral Source Code",13)]
  	    [HL7Field(HL7Version.v23, 13, HL7Repeat.False, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v231, 13, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v24, 13, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v25, 13, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v251, 13, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v26, 13, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v27, 13, HL7Repeat.True, HL7Required.True,"XCN")]
	    public XCN[] ReferralSourceCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("14 Previous Service Date",14)]
  	    [HL7Field(HL7Version.v23, 14, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v231, 14, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v24, 14, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v25, 14, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v251, 14, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v26, 14, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v27, 14, HL7Repeat.False, HL7Required.True,"DT")]
	    public DT PreviousServiceDate {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("15 Employment Illness Related Indicator",15)]
  	    [HL7Field(HL7Version.v23, 15, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v231, 15, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v24, 15, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v25, 15, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v251, 15, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v26, 15, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v27, 15, HL7Repeat.False, HL7Required.True,"ID")]
		[YesnoIndicator]
	    public ID EmploymentIllnessRelatedIndicator {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("16 Purge Status Code",16)]
  	    [HL7Field(HL7Version.v23, 16, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v231, 16, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v24, 16, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v25, 16, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 16, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 16, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 16, HL7Repeat.False, HL7Required.True,"CWE")]
		[PurgeStatusCode]
	    public CWE PurgeStatusCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("17 Purge Status Date",17)]
  	    [HL7Field(HL7Version.v23, 17, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v231, 17, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v24, 17, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v25, 17, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v251, 17, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v26, 17, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v27, 17, HL7Repeat.False, HL7Required.True,"DT")]
	    public DT PurgeStatusDate {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("18 Special Program Code",18)]
  	    [HL7Field(HL7Version.v23, 18, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v231, 18, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v24, 18, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v25, 18, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 18, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 18, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 18, HL7Repeat.False, HL7Required.True,"CWE")]
		[SpecialProgramCode]
	    public CWE SpecialProgramCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("19 Retention Indicator",19)]
  	    [HL7Field(HL7Version.v23, 19, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v231, 19, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v24, 19, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v25, 19, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v251, 19, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v26, 19, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v27, 19, HL7Repeat.False, HL7Required.True,"ID")]
		[YesnoIndicator]
	    public ID RetentionIndicator {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("20 Expected Number of Insurance Plans",20)]
  	    [HL7Field(HL7Version.v23, 20, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v231, 20, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v24, 20, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v25, 20, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v251, 20, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v26, 20, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v27, 20, HL7Repeat.False, HL7Required.True,"NM")]
	    public NM ExpectedNumberofInsurancePlans {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("21 Visit Publicity Code",21)]
  	    [HL7Field(HL7Version.v23, 21, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v231, 21, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v24, 21, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v25, 21, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 21, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 21, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 21, HL7Repeat.False, HL7Required.True,"CWE")]
		[PublicityCode]
	    public CWE VisitPublicityCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("22 Visit Protection Indicator",22)]
  	    [HL7Field(HL7Version.v23, 22, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v231, 22, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v24, 22, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v25, 22, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v251, 22, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v26, 22, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v27, 22, HL7Repeat.False, HL7Required.True,"ID")]
		[YesnoIndicator]
	    public ID VisitProtectionIndicator {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("23 Clinic Organization Name",23)]
  	    [HL7Field(HL7Version.v23, 23, HL7Repeat.True, HL7Required.True,"XON")]
  	    [HL7Field(HL7Version.v231, 23, HL7Repeat.True, HL7Required.True,"XON")]
  	    [HL7Field(HL7Version.v24, 23, HL7Repeat.True, HL7Required.True,"XON")]
  	    [HL7Field(HL7Version.v25, 23, HL7Repeat.True, HL7Required.True,"XON")]
  	    [HL7Field(HL7Version.v251, 23, HL7Repeat.True, HL7Required.True,"XON")]
  	    [HL7Field(HL7Version.v26, 23, HL7Repeat.True, HL7Required.True,"XON")]
  	    [HL7Field(HL7Version.v27, 23, HL7Repeat.True, HL7Required.True,"XON")]
	    public XON[] ClinicOrganizationName {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("24 Patient Status Code",24)]
  	    [HL7Field(HL7Version.v23, 24, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v231, 24, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v24, 24, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v25, 24, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 24, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 24, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 24, HL7Repeat.False, HL7Required.True,"CWE")]
		[PatientStatusCode]
	    public CWE PatientStatusCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("25 Visit Priority Code",25)]
  	    [HL7Field(HL7Version.v23, 25, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v231, 25, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v24, 25, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v25, 25, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 25, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 25, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 25, HL7Repeat.False, HL7Required.True,"CWE")]
		[VisitPriorityCode]
	    public CWE VisitPriorityCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("26 Previous Treatment Date",26)]
  	    [HL7Field(HL7Version.v23, 26, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v231, 26, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v24, 26, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v25, 26, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v251, 26, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v26, 26, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v27, 26, HL7Repeat.False, HL7Required.True,"DT")]
	    public DT PreviousTreatmentDate {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("27 Expected Discharge Disposition",27)]
  	    [HL7Field(HL7Version.v23, 27, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v231, 27, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v24, 27, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v25, 27, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 27, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 27, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 27, HL7Repeat.False, HL7Required.True,"CWE")]
		[DischargeDisposition]
	    public CWE ExpectedDischargeDisposition {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("28 Signature on File Date",28)]
  	    [HL7Field(HL7Version.v23, 28, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v231, 28, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v24, 28, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v25, 28, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v251, 28, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v26, 28, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v27, 28, HL7Repeat.False, HL7Required.True,"DT")]
	    public DT SignatureonFileDate {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("29 First Similar Illness Date",29)]
  	    [HL7Field(HL7Version.v23, 29, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v231, 29, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v24, 29, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v25, 29, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v251, 29, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v26, 29, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v27, 29, HL7Repeat.False, HL7Required.True,"DT")]
	    public DT FirstSimilarIllnessDate {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("30 Patient Charge Adjustment Code",30)]
  	    [HL7Field(HL7Version.v23, 30, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v231, 30, HL7Repeat.False, HL7Required.True,"CE_0218")]
  	    [HL7Field(HL7Version.v24, 30, HL7Repeat.False, HL7Required.True,"CE_0218")]
  	    [HL7Field(HL7Version.v25, 30, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 30, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 30, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 30, HL7Repeat.False, HL7Required.True,"CWE")]
		[PatientChargeAdjustment]
	    public CWE PatientChargeAdjustmentCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("31 Recurring Service Code",31)]
  	    [HL7Field(HL7Version.v23, 31, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v231, 31, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v24, 31, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v25, 31, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 31, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 31, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 31, HL7Repeat.False, HL7Required.True,"CWE")]
		[RecurringServiceCode]
	    public CWE RecurringServiceCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("32 Billing Media Code",32)]
  	    [HL7Field(HL7Version.v23, 32, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v231, 32, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v24, 32, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v25, 32, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v251, 32, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v26, 32, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v27, 32, HL7Repeat.False, HL7Required.True,"ID")]
		[YesnoIndicator]
	    public ID BillingMediaCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("33 Expected Surgery Date & Time",33)]
  	    [HL7Field(HL7Version.v23, 33, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v231, 33, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v24, 33, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v25, 33, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v251, 33, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v26, 33, HL7Repeat.False, HL7Required.True,"DTM")]
  	    [HL7Field(HL7Version.v27, 33, HL7Repeat.False, HL7Required.True,"DTM")]
	    public DTM ExpectedSurgeryDateTime {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("34 Military Partnership Code",34)]
  	    [HL7Field(HL7Version.v23, 34, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v231, 34, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v24, 34, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v25, 34, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v251, 34, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v26, 34, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v27, 34, HL7Repeat.False, HL7Required.True,"ID")]
		[YesnoIndicator]
	    public ID MilitaryPartnershipCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("35 Military Non-Availabiltiy Code",35)]
  	    [HL7Field(HL7Version.v23, 35, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v231, 35, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v24, 35, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v25, 35, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v251, 35, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v26, 35, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v27, 35, HL7Repeat.False, HL7Required.True,"ID")]
		[YesnoIndicator]
	    public ID MilitaryNonAvailabiltiyCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("36 Newborn Baby Indicator",36)]
  	    [HL7Field(HL7Version.v23, 36, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v231, 36, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v24, 36, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v25, 36, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v251, 36, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v26, 36, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v27, 36, HL7Repeat.False, HL7Required.True,"ID")]
		[YesnoIndicator]
	    public ID NewbornBabyIndicator {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("37 Baby Detained Indicator",37)]
  	    [HL7Field(HL7Version.v23, 37, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v231, 37, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v24, 37, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v25, 37, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v251, 37, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v26, 37, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v27, 37, HL7Repeat.False, HL7Required.True,"ID")]
		[YesnoIndicator]
	    public ID BabyDetainedIndicator {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("38 Mode of Arrival Code",38)]
  	    [HL7Field(HL7Version.v24, 38, HL7Repeat.False, HL7Required.True,"CE_0430")]
  	    [HL7Field(HL7Version.v25, 38, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 38, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 38, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 38, HL7Repeat.False, HL7Required.True,"CWE")]
		[ModeofArrivalCode]
	    public CWE ModeofArrivalCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("39 Recreational Drug Use Code",39)]
  	    [HL7Field(HL7Version.v24, 39, HL7Repeat.True, HL7Required.True,"CE_0431")]
  	    [HL7Field(HL7Version.v25, 39, HL7Repeat.True, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 39, HL7Repeat.True, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 39, HL7Repeat.True, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 39, HL7Repeat.True, HL7Required.True,"CWE")]
		[RecreationalDrugUseCode]
	    public CWE[] RecreationalDrugUseCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("40 Admission Level of Care Code",40)]
  	    [HL7Field(HL7Version.v24, 40, HL7Repeat.False, HL7Required.True,"CE_0432")]
  	    [HL7Field(HL7Version.v25, 40, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 40, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 40, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 40, HL7Repeat.False, HL7Required.True,"CWE")]
		[AdmissionLevelofCareCode]
	    public CWE AdmissionLevelofCareCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("41 Precaution Code",41)]
  	    [HL7Field(HL7Version.v24, 41, HL7Repeat.True, HL7Required.True,"CE_0433")]
  	    [HL7Field(HL7Version.v25, 41, HL7Repeat.True, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 41, HL7Repeat.True, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 41, HL7Repeat.True, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 41, HL7Repeat.True, HL7Required.True,"CWE")]
		[PrecautionCode]
	    public CWE[] PrecautionCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("42 Patient Condition Code",42)]
  	    [HL7Field(HL7Version.v24, 42, HL7Repeat.False, HL7Required.True,"CE_0434")]
  	    [HL7Field(HL7Version.v25, 42, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 42, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 42, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 42, HL7Repeat.False, HL7Required.True,"CWE")]
		[PatientConditionCode]
	    public CWE PatientConditionCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("43 Living Will Code",43)]
  	    [HL7Field(HL7Version.v24, 43, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v25, 43, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 43, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 43, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 43, HL7Repeat.False, HL7Required.True,"CWE")]
		[LivingWillCode]
	    public CWE LivingWillCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("44 Organ Donor Code",44)]
  	    [HL7Field(HL7Version.v24, 44, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v25, 44, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 44, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 44, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 44, HL7Repeat.False, HL7Required.True,"CWE")]
		[OrganDonorCode]
	    public CWE OrganDonorCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("45 Advance Directive Code",45)]
  	    [HL7Field(HL7Version.v24, 45, HL7Repeat.True, HL7Required.True,"CE_0435")]
  	    [HL7Field(HL7Version.v25, 45, HL7Repeat.True, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 45, HL7Repeat.True, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 45, HL7Repeat.True, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 45, HL7Repeat.True, HL7Required.True,"CWE")]
		[AdvanceDirectiveCode]
	    public CWE[] AdvanceDirectiveCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("46 Patient Status Effective Date",46)]
  	    [HL7Field(HL7Version.v24, 46, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v25, 46, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v251, 46, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v26, 46, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v27, 46, HL7Repeat.False, HL7Required.True,"DT")]
	    public DT PatientStatusEffectiveDate {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("47 Expected LOA Return Date/Time",47)]
  	    [HL7Field(HL7Version.v24, 47, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v25, 47, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v251, 47, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v26, 47, HL7Repeat.False, HL7Required.True,"DTM")]
  	    [HL7Field(HL7Version.v27, 47, HL7Repeat.False, HL7Required.True,"DTM")]
	    public DTM ExpectedLOAReturnDateTime {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("48 Expected Pre-admission Testing Date/Time",48)]
  	    [HL7Field(HL7Version.v25, 48, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v251, 48, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v26, 48, HL7Repeat.False, HL7Required.True,"DTM")]
  	    [HL7Field(HL7Version.v27, 48, HL7Repeat.False, HL7Required.True,"DTM")]
	    public DTM ExpectedPreadmissionTestingDateTime {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("49 Notify Clergy Code",49)]
  	    [HL7Field(HL7Version.v25, 49, HL7Repeat.True, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 49, HL7Repeat.True, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 49, HL7Repeat.True, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 49, HL7Repeat.True, HL7Required.True,"CWE")]
		[NotifyClergyCode]
	    public CWE[] NotifyClergyCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("50 Advance Directive Last Verified Date",50)]
  	    [HL7Field(HL7Version.v26, 50, HL7Repeat.False, HL7Required.True,"DT")]
  	    [HL7Field(HL7Version.v27, 50, HL7Repeat.False, HL7Required.True,"DT")]
	    public DT AdvanceDirectiveLastVerifiedDate {get;set;}


	    [DataMember]
        [PropertyClassification("AdditionalValue1", 51)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue1 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue2", 52)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue2 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue3", 53)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue3 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue4", 54)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue4 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue5", 55)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue5 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue6", 56)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue6 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue7", 57)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue7 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue8", 58)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue8 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue9", 59)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue9 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue10", 60)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue10 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue11", 61)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue11 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue12", 62)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue12 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue13", 63)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue13 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue14", 64)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue14 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue15", 65)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue15 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue16", 66)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue16 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue17", 67)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue17 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue18", 68)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue18 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue19", 69)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue19 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue20", 70)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue20 { get; set; }

	

		internal override void ConsumeTextSegment(string segmentTextData, HL7ParserOptions options)
		{
			string[] segmentTextParts = segmentTextData.Split(new char[] { options.FieldSep }, StringSplitOptions.None);
			PriorPendingLocation = (PL)ParseTextAtPositionIntoData(segmentTextParts, 1, options, typeof(PL), "PV2.1");
			AccommodationCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 2, options, typeof(CWE), "PV2.2");
			AdmitReason = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 3, options, typeof(CWE), "PV2.3");
			TransferReason = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 4, options, typeof(CWE), "PV2.4");
	    	PatientValuables = (ST[])ParseTextAtPositionIntoDataArray<ST>(segmentTextParts, 5, options, "PV2.5");
			PatientValuablesLocation = (ST)ParseTextAtPositionIntoData(segmentTextParts, 6, options, typeof(ST), "PV2.6");
	    	VisitUserCode = (CWE[])ParseTextAtPositionIntoDataArray<CWE>(segmentTextParts, 7, options, "PV2.7");
			ExpectedAdmitDate = (DTM)ParseTextAtPositionIntoData(segmentTextParts, 8, options, typeof(DTM), "PV2.8");
			ExpectedDischargeDate = (DTM)ParseTextAtPositionIntoData(segmentTextParts, 9, options, typeof(DTM), "PV2.9");
			EstimatedLengthofInpatientStay = (NM)ParseTextAtPositionIntoData(segmentTextParts, 10, options, typeof(NM), "PV2.10");
			ActualLengthofInpatientStay = (NM)ParseTextAtPositionIntoData(segmentTextParts, 11, options, typeof(NM), "PV2.11");
			VisitDescription = (ST)ParseTextAtPositionIntoData(segmentTextParts, 12, options, typeof(ST), "PV2.12");
	    	ReferralSourceCode = (XCN[])ParseTextAtPositionIntoDataArray<XCN>(segmentTextParts, 13, options, "PV2.13");
			PreviousServiceDate = (DT)ParseTextAtPositionIntoData(segmentTextParts, 14, options, typeof(DT), "PV2.14");
			EmploymentIllnessRelatedIndicator = (ID)ParseTextAtPositionIntoData(segmentTextParts, 15, options, typeof(ID), "PV2.15");
			PurgeStatusCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 16, options, typeof(CWE), "PV2.16");
			PurgeStatusDate = (DT)ParseTextAtPositionIntoData(segmentTextParts, 17, options, typeof(DT), "PV2.17");
			SpecialProgramCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 18, options, typeof(CWE), "PV2.18");
			RetentionIndicator = (ID)ParseTextAtPositionIntoData(segmentTextParts, 19, options, typeof(ID), "PV2.19");
			ExpectedNumberofInsurancePlans = (NM)ParseTextAtPositionIntoData(segmentTextParts, 20, options, typeof(NM), "PV2.20");
			VisitPublicityCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 21, options, typeof(CWE), "PV2.21");
			VisitProtectionIndicator = (ID)ParseTextAtPositionIntoData(segmentTextParts, 22, options, typeof(ID), "PV2.22");
	    	ClinicOrganizationName = (XON[])ParseTextAtPositionIntoDataArray<XON>(segmentTextParts, 23, options, "PV2.23");
			PatientStatusCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 24, options, typeof(CWE), "PV2.24");
			VisitPriorityCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 25, options, typeof(CWE), "PV2.25");
			PreviousTreatmentDate = (DT)ParseTextAtPositionIntoData(segmentTextParts, 26, options, typeof(DT), "PV2.26");
			ExpectedDischargeDisposition = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 27, options, typeof(CWE), "PV2.27");
			SignatureonFileDate = (DT)ParseTextAtPositionIntoData(segmentTextParts, 28, options, typeof(DT), "PV2.28");
			FirstSimilarIllnessDate = (DT)ParseTextAtPositionIntoData(segmentTextParts, 29, options, typeof(DT), "PV2.29");
			PatientChargeAdjustmentCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 30, options, typeof(CWE), "PV2.30");
			RecurringServiceCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 31, options, typeof(CWE), "PV2.31");
			BillingMediaCode = (ID)ParseTextAtPositionIntoData(segmentTextParts, 32, options, typeof(ID), "PV2.32");
			ExpectedSurgeryDateTime = (DTM)ParseTextAtPositionIntoData(segmentTextParts, 33, options, typeof(DTM), "PV2.33");
			MilitaryPartnershipCode = (ID)ParseTextAtPositionIntoData(segmentTextParts, 34, options, typeof(ID), "PV2.34");
			MilitaryNonAvailabiltiyCode = (ID)ParseTextAtPositionIntoData(segmentTextParts, 35, options, typeof(ID), "PV2.35");
			NewbornBabyIndicator = (ID)ParseTextAtPositionIntoData(segmentTextParts, 36, options, typeof(ID), "PV2.36");
			BabyDetainedIndicator = (ID)ParseTextAtPositionIntoData(segmentTextParts, 37, options, typeof(ID), "PV2.37");
			ModeofArrivalCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 38, options, typeof(CWE), "PV2.38");
	    	RecreationalDrugUseCode = (CWE[])ParseTextAtPositionIntoDataArray<CWE>(segmentTextParts, 39, options, "PV2.39");
			AdmissionLevelofCareCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 40, options, typeof(CWE), "PV2.40");
	    	PrecautionCode = (CWE[])ParseTextAtPositionIntoDataArray<CWE>(segmentTextParts, 41, options, "PV2.41");
			PatientConditionCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 42, options, typeof(CWE), "PV2.42");
			LivingWillCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 43, options, typeof(CWE), "PV2.43");
			OrganDonorCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 44, options, typeof(CWE), "PV2.44");
	    	AdvanceDirectiveCode = (CWE[])ParseTextAtPositionIntoDataArray<CWE>(segmentTextParts, 45, options, "PV2.45");
			PatientStatusEffectiveDate = (DT)ParseTextAtPositionIntoData(segmentTextParts, 46, options, typeof(DT), "PV2.46");
			ExpectedLOAReturnDateTime = (DTM)ParseTextAtPositionIntoData(segmentTextParts, 47, options, typeof(DTM), "PV2.47");
			ExpectedPreadmissionTestingDateTime = (DTM)ParseTextAtPositionIntoData(segmentTextParts, 48, options, typeof(DTM), "PV2.48");
	    	NotifyClergyCode = (CWE[])ParseTextAtPositionIntoDataArray<CWE>(segmentTextParts, 49, options, "PV2.49");
			AdvanceDirectiveLastVerifiedDate = (DT)ParseTextAtPositionIntoData(segmentTextParts, 50, options, typeof(DT), "PV2.50");
		}

		public string GetER7(HL7ParserOptions options) {
			List<string> segmentParts = new List<string>();
			segmentParts.Add("PV2");
			segmentParts.Add(GetER7TextForSegmentPart(PriorPendingLocation, options));
			segmentParts.Add(GetER7TextForSegmentPart(AccommodationCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(AdmitReason, options));
			segmentParts.Add(GetER7TextForSegmentPart(TransferReason, options));
		    segmentParts.Add(ConvertStringArray(PatientValuables, options));
		    segmentParts.Add(PatientValuablesLocation);
		    segmentParts.Add(GetER7TextForSegmentArrayPart(VisitUserCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(ExpectedAdmitDate, options));
			segmentParts.Add(GetER7TextForSegmentPart(ExpectedDischargeDate, options));
			segmentParts.Add(GetER7TextForSegmentPart(EstimatedLengthofInpatientStay, options));
			segmentParts.Add(GetER7TextForSegmentPart(ActualLengthofInpatientStay, options));
		    segmentParts.Add(VisitDescription);
		    segmentParts.Add(GetER7TextForSegmentArrayPart(ReferralSourceCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(PreviousServiceDate, options));
		    segmentParts.Add(EmploymentIllnessRelatedIndicator);
			segmentParts.Add(GetER7TextForSegmentPart(PurgeStatusCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(PurgeStatusDate, options));
			segmentParts.Add(GetER7TextForSegmentPart(SpecialProgramCode, options));
		    segmentParts.Add(RetentionIndicator);
			segmentParts.Add(GetER7TextForSegmentPart(ExpectedNumberofInsurancePlans, options));
			segmentParts.Add(GetER7TextForSegmentPart(VisitPublicityCode, options));
		    segmentParts.Add(VisitProtectionIndicator);
		    segmentParts.Add(GetER7TextForSegmentArrayPart(ClinicOrganizationName, options));
			segmentParts.Add(GetER7TextForSegmentPart(PatientStatusCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(VisitPriorityCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(PreviousTreatmentDate, options));
			segmentParts.Add(GetER7TextForSegmentPart(ExpectedDischargeDisposition, options));
			segmentParts.Add(GetER7TextForSegmentPart(SignatureonFileDate, options));
			segmentParts.Add(GetER7TextForSegmentPart(FirstSimilarIllnessDate, options));
			segmentParts.Add(GetER7TextForSegmentPart(PatientChargeAdjustmentCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(RecurringServiceCode, options));
		    segmentParts.Add(BillingMediaCode);
			segmentParts.Add(GetER7TextForSegmentPart(ExpectedSurgeryDateTime, options));
		    segmentParts.Add(MilitaryPartnershipCode);
		    segmentParts.Add(MilitaryNonAvailabiltiyCode);
		    segmentParts.Add(NewbornBabyIndicator);
		    segmentParts.Add(BabyDetainedIndicator);
			segmentParts.Add(GetER7TextForSegmentPart(ModeofArrivalCode, options));
		    segmentParts.Add(GetER7TextForSegmentArrayPart(RecreationalDrugUseCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(AdmissionLevelofCareCode, options));
		    segmentParts.Add(GetER7TextForSegmentArrayPart(PrecautionCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(PatientConditionCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(LivingWillCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(OrganDonorCode, options));
		    segmentParts.Add(GetER7TextForSegmentArrayPart(AdvanceDirectiveCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(PatientStatusEffectiveDate, options));
			segmentParts.Add(GetER7TextForSegmentPart(ExpectedLOAReturnDateTime, options));
			segmentParts.Add(GetER7TextForSegmentPart(ExpectedPreadmissionTestingDateTime, options));
		    segmentParts.Add(GetER7TextForSegmentArrayPart(NotifyClergyCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(AdvanceDirectiveLastVerifiedDate, options));
			return string.Join("" + options.FieldSep, segmentParts.ToArray());
		}

    }
}

